$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod1',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod1',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod2',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod2',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod3',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod3',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod4',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod4',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod5',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod5',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod6',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod6',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})
$(".typeBox1 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#startPeriod7',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#endPeriod7',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position:'fixed',
            done:function(value,date){
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max={
                    year:date.year,
                    month:date.month-1,//关键
                    date:date.date,
                    hours:date.hours,
                    minutes:date.minutes,
                    seconds:date.seconds
                }

            }
        });

    });
})

//---------------------------------------------------------------------------------------------------------------------------//
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod1',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod1',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod2',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod2',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod3',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod3',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod4',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod4',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod5',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod5',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod6',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod6',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})
$(".typeBox2 [name='VIPQuantuan']").each(function (index) {
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var beginTime = laydate.render({
            elem: '#D_startPeriod7',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                endTime.config.min = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                };

            }
        });
        var endTime = laydate.render({
            elem: '#D_endPeriod7',
            type: 'time',
            format: 'HH:mm:ss',
            trigger: 'click',
            position: 'fixed',
            done: function (value, date) {
//    		console.log(value); //得到日期生成的值，如：2017-08-18
//    	    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                beginTime.config.max = {
                    year: date.year,
                    month: date.month - 1,//关键
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }

            }
        });
    })
})